import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/style/element-variables.scss'
import router from './router/index';
import store from './store/index';
import Toolbar from '@/components/toolbar.vue';

// 图片根地址
import { baseUrl } from '@/utils/config/index.js';
import { XyTools } from 'h5webtools';

Vue.prototype.$xy = new XyTools(); // xy 常用工具

// 全局 eventBus
Vue.prototype.$EventBus = new Vue();
Vue.prototype.$baseUrl = baseUrl; // baseUrl 图片
Vue.component('Toolbar', Toolbar);

Vue.use(ElementUI, { size: 'small' })
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')